<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<script type="text/javascript">
   var clickTreeId="";

	function departmentTree_onNodeClick(event, treeId, treeNode) {
		//alert(treeNode.treenodePath);
		//alert(	JSON.stringify(treeNode));
		/**/

	}
	function reloadDepartmentTree() {
		window.location.reload();
	}

</script>
<table class="box col-table">
	<tr>
		<td class="col-three-one"><isperp:tree title="组织机构" modal="false"  showLv1DeleteBtn="false"
				id="departmentTree" cusEditUrl="app/department/edit?type=${ctype }"
				afterActionsSuccess="function c(){reloadDepartmentTree();}"
				cusDeleteUrl="app/department/delete">
				<isperp:async enable="true" autoParam="'id'"
					otherParam="{asyncLoad:1}" url="app/department/getDeptTree?type=${ctype }&showRoot=1">
				</isperp:async>
				
				<isperp:edit enable="true" showRemoveBtn="false"
					showRenameBtn="false"></isperp:edit>
				<isperp:view showTitle="false" addHoverDom="true"
					removeHoverDom="true"></isperp:view>
			</isperp:tree>
		</td>
		<td class="col-three-two"><isperp:operate code="ORG_DEPARTMENT"></isperp:operate>
		</td>
	</tr>
</table>
